package qianfeng.com.fan_shu_xiao_bao;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

/**
 * Created by Li_ke on 2017/1/14.
 *
 */

public class App extends Application {
    private static App app;
    private RequestQueue requestQueue;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        requestQueue = Volley.newRequestQueue(getApplicationContext());
    }

    public static App getInstance() {
        return app;
    }

    public void setRequestQueue(RequestQueue requestQueue) {
        this.requestQueue = requestQueue;
    }
}
